import React from 'react';
import Layout from '../../../src/components/layout/Layout';
import Event from '../../../src/components/pages/phases/Event';
import { RingProps } from '../../../src/model/components/ring';
import getServerSidePropsRing from '../../../src/utils/ssr/getServerSidePropsRing';

const event: React.FC<RingProps> = ({ ring, user }) => (
  <Layout title="Evento" mainClassName="phasePage">
    <Event ring={ring} user={user} />
  </Layout>
);

export const getServerSideProps = getServerSidePropsRing;

export default event;
